package cn.unknowpupil.mapper.system;

import cn.unknowpupil.domain.system.SysEmail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * Created at 2020-11-04 by  w10g <br>
 * Initialize SysEmail  ... <br>
 *  邮件配置表 数据持久层处理
 *
 * @author unknowpupil
 * @since 0.0.1
 */
@Mapper
public interface SysEmailMapper extends BaseMapper<SysEmail> {
    /**
     * 查找开启的邮件配置
     * @return
     */
    SysEmail selectStatusOpenConfigure();

    /**
     * 关闭所有开启的状态
     * @param id
     * @return
     */
    int closeAllEmailOpenStatus(Long id);


}
